
#Region "Summary"
''' -----------------------------------------------------------------------------
''' Project	 : PTT.StationsTracking.Data
''' Class	 : StationsTracking.Data.QueryInvDriverCost
''' 
''' -----------------------------------------------------------------------------
''' <summary>
''' Query Result Single Business Entity
''' </summary>
''' <remarks>
''' Sample of business entity coding
''' </remarks>
''' <history>
''' 	[Generater by Nok]	22/3/2549 10:37:26	Created
''' </history>
''' -----------------------------------------------------------------------------
#End Region

#Region ".NET Framework Class Import"
Imports System
Imports System.Xml.Serialization
Imports System.IO
Imports System.Runtime.Serialization
Imports System.Runtime.Serialization.Formatters.Binary
Imports System.Collections
#End Region

<Serializable()> _
Public Class QueryInvDriverCost
#Region "Internal member variables"
    Private _CostId As Byte
    Private _CostDay As Decimal
    Private _CostHoliday As Decimal
    Private _OtDay As Decimal
    Private _OtHoliday As Decimal
#End Region

    Public Sub New()
        _CostId = Nothing
        _CostDay = Nothing
        _CostHoliday = Nothing
        _OtDay = Nothing
        _OtHoliday = Nothing
    End Sub

    Public Sub New(ByVal CostId As Byte, _
       ByVal CostDay As Decimal, _
       ByVal CostHoliday As Decimal, _
       ByVal OtDay As Decimal, _
       ByVal OtHoliday As Decimal)
        _CostId = CostId
        _CostDay = CostDay
        _CostHoliday = CostHoliday
        _OtDay = OtDay
        _OtHoliday = OtHoliday
    End Sub

#Region "Property"

    Public Property CostId() As Byte
        Get
            Return _CostId
        End Get
        Set(ByVal value As Byte)
            _CostId = value
        End Set
    End Property


    Public Property CostDay() As Decimal
        Get
            Return _CostDay
        End Get
        Set(ByVal value As Decimal)
            _CostDay = value
        End Set
    End Property


    Public Property CostHoliday() As Decimal
        Get
            Return _CostHoliday
        End Get
        Set(ByVal value As Decimal)
            _CostHoliday = value
        End Set
    End Property


    Public Property OtDay() As Decimal
        Get
            Return _OtDay
        End Get
        Set(ByVal value As Decimal)
            _OtDay = value
        End Set
    End Property


    Public Property OtHoliday() As Decimal
        Get
            Return _OtHoliday
        End Get
        Set(ByVal value As Decimal)
            _OtHoliday = value
        End Set
    End Property

#End Region
End Class

''' -----------------------------------------------------------------------------
''' Project	 : PTT.StationsTracking.Data
''' Class	 : StationsTracking.Data.QueryInvDriverCosts
''' 
''' -----------------------------------------------------------------------------
''' <summary>
''' Collection of query result
''' </summary>
''' <remarks>
''' Sample
''' </remarks>
''' <history>
''' 	[NOK'S Generater]	22/3/2549 10:37:26	Created
''' </history>
''' -----------------------------------------------------------------------------
<Serializable()> _
Public Class QueryInvDriverCosts
    Inherits CollectionBase


    Default Public ReadOnly Property Item(ByVal index As Integer) As QueryInvDriverCost
        Get
            If (index < 0 Or index >= Me.InnerList.Count) Then
                Throw New Exception("index has to be between 0 and " & (Me.InnerList.Count - 1).ToString())
            Else
                Return CType(Me.InnerList(index), QueryInvDriverCost)
            End If
        End Get
    End Property

    Public Sub Add(ByVal info As QueryInvDriverCost)
        Me.InnerList.Add(info)
    End Sub

    Public Sub SetItem(ByVal index As Integer, ByVal value As QueryInvDriverCost)
        If (index < 0 Or index >= Me.InnerList.Count) Then
            Throw New Exception("index has to be between 0 and " & (Me.InnerList.Count - 1).ToString())
        Else
            Me.InnerList(index) = value
        End If
    End Sub


End Class

